package com.tuo51.manager.repository;

import com.tuo51.manager.vo.StaffListItemVO;

import java.util.List;
import java.util.Map;

public interface DataAnalysisRepository  {

    /***
     *
     * @param type   0.per day     1. per week
     * @return
     */
    List<Map<String, String>> getSystemRecordCounts(int type);

    /***
     *
     * @param type   0.per day     1. per week
     * @return
     */
    List<Map<String, String>> getSystemUsersCounts(int type);

    List<Map<String, Object>> getSystemLocationCounts(Long total);

    Long countStaff();

    Long countAllVIPStaff();

    Long countUnexpiredVIPStaff();

    List<StaffListItemVO> allVipItems(int pageNum, int pageSize);

    List<StaffListItemVO> allUserItems(int pageNum, int pageSize, String searchBy);

    Long countAllUserItems(String searchBy);
}
